package org.igeek.config.filter;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @package org.igeek.config.filter
 * @Description 测试类
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/11/14 11:44
 */
public class MainTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac =
                new AnnotationConfigApplicationContext(MyConfig.class);
//        UserService userService = ac.getBean("userService", UserService.class);
//        userService.login("1","2");

        UserDao userDao = ac.getBean("userDao", UserDao.class);
        userDao.selectOne("1","2");

    }
}
